package com.jt.Controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.lang.model.element.NestingKind;

@RestController
@CrossOrigin
@RequestMapping("/web")
public class WebController {
    @GetMapping("/hello")
    public String hello(){
        return "好好学习,天天向上";
    }
}
